#include "pch.h"
namespace Shared
{
    struct LibHandle
    {
        void *handle = 0;

        bool Avail();
        bool Open(const char *path);
        int Close();

        void *GetProcAddr(const char *funcName);

        template <typename T>
        T GetProcAddrAs(const char *funcName)
        {
            return (T)GetProcAddr(funcName);
        }
    };

};